package com.zhs.study.pojo;

/**
 * @author zhenghuisheng
 * @date : 2023/6/13
 */
@lombok.Data
public class Data implements Comparable<Data> {
    private Integer i;
    private Integer j;

    public Data(Integer i,Integer j){
        this.i = i;
        this.j = j;
    }

    public Integer getI() {
        return i;
    }

    public void setI(Integer i) {
        this.i = i;
    }

    public Integer getJ() {
        return j;
    }

    public void setJ(Integer j) {
        this.j = j;
    }

    @Override
    public int compareTo(Data data) {
        return this.i - data.getI() > 0 ? 1 : -1;
    }
}
